package com.gxa.hualian.factory;

import com.gxa.hualian.pojo.User;

/**
 * @Author ChenJin
 * @date 2021/10/18 15:20
 * Description:
 **/
public class UserBeanFactory {

//    public static User newInstance(){
//        User user = new User();
//        user.setId(1L);
//        user.setName("陈");
//        return user;
//    }

    public User newInstance(){
        User user = new User();
        user.setId(1L);
        user.setName("陈");
        return user;
    }

}
